/**
 * 标题
 */
import React, {Component} from 'react';
import {Icon} from 'antd';

import styles from './modalTitle.less';

export default class MyTitle extends Component {

  render () {
    const {titleName,subTitle,backgroundColor,color} = this.props;
    return (
      <div className={styles.zcBox} style={backgroundColor?{borderBottomColor: backgroundColor,...this.props.style}:null}>
        <span className={styles.zcTitle}
              style={{backgroundColor:backgroundColor,color:color}}>
          {titleName}</span>
        <span className={styles.subTitle}>{subTitle}</span>
      </div>
    )
  }
}
